<template>
  <div class="jujia">
    <div class="jujiaview">
      <div class="jujiadiv">
        <slot name="jujiantitle"></slot>
      </div>
      <div class="jujiaul">
        <slot name="jujiaullist"></slot>
      </div>
    </div>
    <div class="jujiaindexxia">
      <slot></slot>
    </div>
  </div>
</template>
<script>
export default {};
</script>
<style lang="scss">
.jujia {
  width: 100%;
  height: 725px;
  background-color: #fff !important;
  .jujiaview {
    height: 115px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;

    .jujiadiv {
      font-size: 25px;
    }

    .jujiaul {
      display: flex;
      align-items: center;

      ul {
        list-style: none;
        display: flex;
        margin-right: 50px;

        li {
          // display: flex;
          width: 80px;
          height: 115px;
          line-height: 115px;
          font-size: 15px;
        }
      }
    }
  }

  .jujiaindexxia {
    display: flex;
    width: 100%;
    height: 610px;

    .jujiaindedxdivyi {
      width: 240px;
      height: 610px;

      // background-color: red;
      img {
        width: 100%;
        height: 100%;
      }
    }
    .jujiaindexdiver {
      width: 1000px;
      height: 610px;
      .jujiaindexdivul {
        width: 1000px;
        height: 610px;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-content: space-between;

        .jujiaindexdivli {
          width: 240px;
          height: 300px;
          position: relative;
          border: 0px solid #27ba9b;
          background-color: #fff;
          .shangpinyiyou {
            margin-left: 10px;
          }

          .shangpinyichu {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            width: 180px;
            color: gray;
            font-size: 15px;
            margin-left: 10px;
          }
          img {
            width: 160px;
            height: 160px;
            margin: 10px 35px;
          }

          .jujiaindexdivlip {
            margin-left: 10px;
            color: red;
          }
          .extra {
            position: absolute;
            left: 0;
            bottom: 0;
            height: 0px;
            width: 100%;
            background: #27ba9b;

            text-align: center;
            // transform: translate3d(0, 100%, 0);
            transition: all 0.5s;
            // display: none;
            opacity: 0;
            overflow: hidden;
            span {
              display: block;
              color: #fff;
              width: 120px;
              margin: 0 auto;
              line-height: 30px;

              &:first-child {
                font-size: 18px;
                border-bottom: 1px solid #fff;
                line-height: 40px;
                margin-top: 5px;
              }
            }
          }
        }
        .jujiaindexdivli:hover {
          // border-color: green;
          .extra {
            height: 86px;
            transition: all 0.5s linear;
            transform: none;
            opacity: 1;
            // border:  1px solid #27ba9b;
          }
        }
        .jujiaindexdivli:hover {
          .jujiaindexdivli {
            // transition: all 0.5s linear;
            // transform: none;
            // opacity: 1;
            border: 1px solid #27ba9b;
          }
        }
      }
    }
  }
}
</style>